<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('rbac/index')}">{:L('ADMIN_RBAC_INDEX')}</a></li>
            <li><a href="{:U('rbac/roleadd')}">{:L('ADMIN_RBAC_ROLEADD')}</a></li>
            <li class="active"><a href="{:U('rbac/roleedit')}">修改角色</a></li>
        </ul>
        <form class="form-horizontal js-ajax-form" action="{:U('Rbac/roleedit_post')}" method="post">

            <div class="form-group">
                <label class="col-md-2 control-label">
                    {:L('ROLE_NAME')}
                    <span class="required" aria-required="true"> * </span>
                </label>
                <div class="col-md-6">
                    <input type="text" class="form-control" name="name" value="{$data.name}" id="rolename" placeholder="请输入角色名称" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">{:L('ROLE_DESCRIPTION')}</label>
                <div class="col-md-6">
                    <textarea name="remark" rows="2" cols="20" id="remark" class="form-control" style="height: 50px;">{$data.remark}</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">{:L('STATUS')}</label>
                <div class="col-md-6">
                    <div class="mt-radio-inline">
                        <php>$active_true_checked=($data['status']==1)?"checked":"";</php>
                        <label class="mt-radio">
                            <input type="radio" name="status" value="1" {$active_true_checked} id="active_true" />{:L('ENABLED')}
                        </label>
                        <php>$active_false_checked=($data['status']==0)?"checked":"";</php>
                        <label class="mt-radio">
                            <input type="radio" name="status" value="0" id="active_false" {$active_false_checked}>{:L('DISABLED')}
                        </label>
                    </div>
                </div>
            </div>

            <div class="form-actions col-md-10 col-md-offset-2">
                <input type="hidden" name="id" value="{$data.id}" />
                
                <button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:L('BACK')}</a>
            </div>
        </form>

        
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>